<%-- 
/*
Assignment 1
Class ID        : SE0691
Group           : 1
Due Date        : 20 November 2012
I declare that this assignment is my own work
in accordance with FPT Policy.
*/
--%>

<%@page import="edu.fpt.hib.News"%>
<%@page import="java.util.ArrayList"%>
<%@page import="edu.fpt.dal.NewsDAL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="myTag" uri="/WEB-INF/tlds/taglib.tld" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>News Management</title>
        <style type="text/css"> <!--@import url("../style.css");--></style>
    </head>
    <body>
        <%@include file="template/header.jsp" %>
        <div id="page">
            
            <table style="width:  950px">
                <tr>
                    <td style="float: left;"><form method="post" action="createnews.jsp">
                            <input class="searchsubmit" type="submit" name="Submit" value="Create News">
                        </form></td>
                    <td style="float: right;"><form method="get" action="">
                            <input id="searchinput" type="text" name="keyword" required="">
                            <input class="searchsubmit" type="submit" name="Submit" value="Search">
                        </form></td>
                </tr>
            </table>
            <hr>

            <div class="post">
                <h2 class="title">List All News</h2>
                <myTag:NewsListTag/>    
            </div>
        </div>
        <%@include file="template/footer.jsp" %>
    </body>
</html>
